package csm.web.core.search;

public enum SearchEnginType {
	DBMS("DBMS"),
	IR("IR"),
	NAVER("NAVER"),
	DAUM("DAUM"),
	ALADIN("ALADIN"),
	FLICKER("FLICKER");

	private String enumString = "";
	private SearchEnginType( String val){
		this.enumString = val;
	}

	public String getName()
	{
		return this.enumString;
	}

	public static SearchEnginType parse(String name){
		if( name == null || name.length() <=0) return SearchEnginType.IR;
		if( name.equalsIgnoreCase("DBMS"))return SearchEnginType.IR;
		if( name.equalsIgnoreCase("NAVER"))return SearchEnginType.NAVER;
		if( name.equalsIgnoreCase("DAUM"))return SearchEnginType.DAUM;
		if( name.equalsIgnoreCase("ALADIN"))return SearchEnginType.ALADIN;
		if( name.equalsIgnoreCase("FLICKER"))return SearchEnginType.FLICKER;
		return SearchEnginType.IR;
	}
}
